package duyd.jpa.training.service;

import java.util.Date;
import java.util.List;

import duyd.jpa.training.domain.Contact;

public interface ContactService {

	public List<Contact> findAll();

	public List<Contact> findAllWithDetail();

	public Contact findById(Long id);

	public Contact save(Contact contact);

	public void delete(Contact contact);

	public List<Contact> findByBirthDateNativeQuery(Date date);

	public List<Contact> findByFirstNameAndLastNameCriteriaQuery(
			String firstName, String lastName);
}
